export default class CircleCdSpScript extends Laya.Script{
    /** @prop {name:R,tips:"r",type:int,default:40}*/
    public R:number=40;
      /** @prop {name:color,tips:"color",type:Color,default:"#ffffff"}*/
    public color:any="#ffffff";
    public drawByPorss(_pross:number){
        this.clear();
        let tend=-_pross*360;
        (this.owner as Laya.Sprite).graphics.drawPie(0,0,this.R,tend,0,this.color);
    }

    public clear(){
        (this.owner as Laya.Sprite).graphics.clear();
    }
}